package net.zjitc.service;

import net.zjitc.common.ResponseResult;
import net.zjitc.entity.Goods;
import net.zjitc.entity.GoodsPics;
import net.zjitc.exception.GoodsException;

import java.util.List;

/**
 * @author 毛钰深
 * @create 2022/2/1
 */
public interface GoodsService {

    ResponseResult selectPageGoods(String query, Integer pagenum, Integer pagesize) throws GoodsException;

    ResponseResult addGoods(Goods goods) throws GoodsException;

    ResponseResult selectById(Integer id) throws GoodsException;

    ResponseResult updateGoods(Goods goods) throws GoodsException;

    ResponseResult deleteById(Integer id);

    ResponseResult updatePics(Integer id, List<GoodsPics> goods) throws GoodsException;

}
